<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<script>
    // var age = prompt('输入您的出生年龄');
    // var age1 = 2020 - age;
    // console.log('你今年'+ age1 + '岁了' );
    var num1 = prompt('输入第一个数字');
    var num2 = prompt('输入第二个数字');
    num = parseFloat(num1) + parseFloat(num2);
    console.log(num);

</script>
<body>
    
</body>
</html>